package com.hj.ipproxy.thread;

public class Outputer {
	String str = "";
	public static void output(String name){
		int len = name.length();
		for (int i = 0; i < len; i++) {
			System.out.print(name.charAt(i));
		}
		System.out.println();
	}
	public void outputs(String name){
		int len = name.length();
		StringBuffer strs = new StringBuffer();
		for (int i = 0; i < len; i++) {
			strs.append(name.charAt(i));
		}
		synchronized (str) {
			System.out.println(strs);
		}
	}
}
